//
//  ClassTypeObject.h
//  huashiedu
//
//  Created by oceans on 2018/9/14.
//  Copyright © 2018年 hema. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface ClassTypeArrayModel : NSObject

@property (copy, nonatomic) NSString *name;
@property (assign, nonatomic) int _id;
@property (strong, nonatomic) NSArray <ClassTypeArrayModel *> *children;
- (instancetype)initWithDic:(NSDictionary *)dic;
@end

@interface ClassTypeObject : NSObject

@property (strong, nonatomic) NSMutableArray <ClassTypeArrayModel *> *allTypes;
+ (instancetype)shared;
- (void)requestClassTypes:(void(^)(NSArray <ClassTypeArrayModel *> *types))finishBlock;
- (int)findIdWithName:(NSString *)name;
@end
